package io.github.eric.urpc.core.serializer;


import io.github.eric.urpc.core.rpc.Message;

public interface MessageSerializer {
    <T extends Message> byte[] serialize(T msg);

    Object deserialize(byte[] bytes, Class<?> clazz);
}
